package 测试;

import java.util.Scanner;

public class _问题F2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            sc.nextLine();
            int max = a + b + c;
            int[] arr = new int[max + 1];
            int value = 0; // 记录出现次数最多的次数
            int res = 0;
            for (int i = 1; i <= a; i++) {
                for (int j = 1; j <= b; j++) {
                    for (int k = 1; k <= c; k++) {
                        int sum = i + j + k;
                        arr[sum]++;
                        int temp = value;
                        value = Math.max(value, arr[sum]);
                        if (temp != value) { // 进行了重制
                            res = 1;
                        } else if (arr[sum] == temp) {
                            res++;
                        }
                    }
                }
            }
//            for (int num : arr) {
//                if (num == value) {
//                    res++;
//                }
//            }
            System.out.println(res);
        }

    }
}
